/* 登录页面容器 */
.mobileLoginContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 背景图片层 */
.backgroundLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.backgroundImage {
  object-fit: cover;
}

/* 蓝色遮罩层 */
.backgroundOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0049AA;
  opacity: 0.7;
  backdrop-filter: blur(2px);
}

/* 主要内容 */
.mobileContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 40px 20px 20px;
  color: white;
}

/* 头部标题 */
.mobileHeader {
  text-align: left;
  margin-bottom: 1pt;
  margin-top: 100px;
  animation: fadeInUp 0.8s ease-out;
}

.appTitle {
  font-family: 'PingFangSC-Regular', sans-serif;
  font-style: normal;
  font-size: 24pt;
  font-weight: normal;
  margin: 0 0 10px 0;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.appSubtitle {
  font-family: 'PingFangSC-Regular', sans-serif;
  font-style: normal;
  font-size: 16pt;
  font-weight: normal;
  margin: 0;
  color: #FFFFFF;
}

/* 表单容器 */
.mobileFormContainer {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 350px;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.inputGroup {
  margin-bottom: 25px;
}

.inputWrapper {
  position: relative;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.inputIconImg {
  margin-right: 15px;
  opacity: 0.8;
}

/* 输入框样式 */
.mobileInput {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 15px 0;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.mobileInput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.mobileInput:focus {
  border-color: #FF8C00;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

/* 登录按钮 */
.mobileLoginBtn {
  width: 100%;
  height: 50px;
  background: #FF8C00;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 60px;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.mobileLoginBtn:hover {
  background: #FF7700;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.mobileLoginBtn:disabled {
  background: #cca37a;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 其他登录方式 */
.otherLogin {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.otherLoginDivider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dividerLine {
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.otherLoginText {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0 20px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.otherLoginText:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.socialLoginIcons {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.socialItem {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.socialItem:hover {
  transform: scale(1.05);
}

.socialIconWrapper {
  position: relative;
  width: 60px;
  height: 60px;
}

.socialText {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}

.socialBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 1;
}

.socialIcon {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* 底部版权 */
.mobileFooter {
  text-align: center;
  margin-top: auto;
  padding-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mobileFooter p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0;
}

/* 消息提示 */
.message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 4px;
  color: white;
  font-size: 14px;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.success {
  background-color: rgba(72, 199, 116, 0.9);
}

.error {
  background-color: rgba(255, 76, 76, 0.9);
}

.info {
  background-color: rgba(0, 120, 212, 0.9);
}

/* 加载遮罩层 */
.loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.successText {
  color: green;
  font-size: 18px;
  margin-bottom: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: green;
  animation: spin 1s ease-in-out infinite;
}

/* 人脸识别弹窗 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modalContent {
  background-color: white;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  overflow: hidden;
}

.modalHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.modalHeader h3 {
  margin: 0;
  color: #333;
}

.closeBtn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.faceModalContent {
  padding: 20px;
}

.webcamPreview {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.faceTip {
  text-align: center;
  margin: 15px 0;
  color: #666;
}

.facePlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 240px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.cameraIcon {
  font-size: 40px;
  margin-bottom: 10px;
}

.faceActions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.actionBtn {
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.actionBtn:hover {
  background-color: #f5f5f5;
}

.primaryBtn {
  background-color: #6ab04c;
  border-color: #6ab04c;
  color: white;
}

.primaryBtn:hover {
  background-color: #5a9d3d;
  color: white;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式设计 */
@media (max-width: 320px) {
  .mobileContent {
    padding: 20px 10px 10px;
  }
  
  .appTitle {
    font-size: 20pt;
  }
  
  .appSubtitle {
    font-size: 14pt;
  }
  
  .socialLoginIcons {
    gap: 15px;
  }
  
  .socialIconWrapper {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 375px) {
  .mobileContent {
    padding: 30px 15px 15px;
  }
  
  .appTitle {
    font-size: 22pt;
  }
  
  .socialLoginIcons {
    gap: 20px;
  }
  
  .socialIconWrapper {
    width: 50px;
    height: 50px;
  }
  
  .socialIcon {
    width: 25px;
    height: 25px;
  }
  
  .socialText {
    font-size: 11px;
  }
}

@media (min-width: 376px) and (max-width: 414px) {
  .mobileContent {
    padding: 35px 18px 18px;
  }
  
  .appTitle {
    font-size: 23pt;
  }
  
  .socialLoginIcons {
    gap: 30px;
  }
}

@media (min-width: 415px) and (max-width: 767px) {
  .mobileContent {
    padding: 40px 20px 20px;
  }
  
  .appTitle {
    font-size: 24pt;
  }
  
  .socialLoginIcons {
    gap: 40px;
  }
}

@media (min-width: 768px) {
  .mobileContent {
    max-width: 400px;
    margin: 0 auto;
  }
}